import {request} from '@/utils/request'

//从数据字典获取采购方式  parent_id
export function wayListFromDict(param) {
    return request({
        url: '/dict/show',
        method: 'post',
        data: param,
    })
}

//获取采购入库明细列表
export function getPartsInDetailList(param) {
    return request({
        url: '/partsIn/list',
        method: 'post',
        data: param,
    })
}
//保存
export function savePartsOrder(param) {
    return request({
        url: '/partsIn/add',
        method: 'post',
        data: param,
        type:2
    })
}